package com.hyt.it.ogt.kq.service.bm.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hyt.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 考生报名科目表
 * </p>
 *
 * @author wangt
 * @since 2020-05-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bm_student_subject")
@ApiModel(value = "StudentSubject对象", description = "考生报名科目表")
public class StudentSubject extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "项目id")
    private String projectId;

    @ApiModelProperty(value = "考生id")
    private String studentId;

    @ApiModelProperty(value = "项目科目id")
    private String subjectId;

    @ApiModelProperty(value = "项目科目名称")
    private String subjectName;

    @ApiModelProperty(value = "缴费状态: 0-待缴费，1-已缴费，2-部分退款，3-支付失败，4-退款中，5-退款失败，6-退款成功")
    private Integer pay;

    @ApiModelProperty(value = "是否需要缴费")
    private Integer isPay;

    @TableField(exist = false)
    @ApiModelProperty(value = "缴费状态: 0-待缴费，1-已缴费，2-部分退款，3-支付失败，4-退款中，5-退款失败，6-退款成功")
    private String payStatus;

    @TableField(exist = false)
    @ApiModelProperty(value = "缴费金额")
    private Double price;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @ApiModelProperty(value = "审核状态:0未审核,1通过,2未通过")
    private Integer isAudit;

    @ApiModelProperty(value = "报名(支付)成功时间")
    private LocalDateTime bmTime;

}
